<?php
namespace Amis\form;
class InputRepeat extends FormItem
{
    public string $type = 'input-repeat';

    public function options(array $options = ['hourly', 'daily', 'weekly', 'monthly'])
    {
        if (in_array($options, ['secondly', 'minutely', 'hourly', 'daily', 'weekdays', 'weekly', 'monthly', 'yearly'])) {
            $this->options = $options;
        }
        return $this;
    }

    public function placeholder(string $placeholder)
    {
        $this->placeholder = $placeholder;
        return $this;
    }
}